import request from './request'



// 获取评论列表
export function GetCommentList(query:any) {
    return request({
        url: '/comment',
        method: 'get',
        params:query
    })
}
// 获取文章类别
export function GetSortForArtilcle(query:any) {
    return request({
        url: '/sort',
        method: 'get',
        params:query
    })
}
// 新增评论
export function addComment(query:any) {
    return request({
        url: '/comment',
        method: 'post',
        data: query
    })
}
// 条件查询文章列表
export function queryArticle(query:any) {
    return request({
        url: '/queryArticle',
        method: 'post',
        data: query
    })
}
//根据id查询文章详情
export function GetArticle(id:number) {
    return request({
        url: '/article/'+id,
        method: 'get',
    })
}
